﻿var UIActionProgress, ns;
var app = new Vue({
    el: '#app',
    data: {},
    methods: {
        logout: function() {
            api.removePrefs({ key: 'apiurl' });
            api.removePrefs({ key: 'companyname' });
            api.removePrefs({ key: 'uid' });
            api.removePrefs({ key: 'HeadImg' });
            api.removePrefs({ key: 'username' });
            api.sendEvent({
                name: 'onlogin'
            });
        },
        changepwd: function() {
            var that = this;
            ns.openWin('xiugaimima_frm', '密码修改');
        },
        checkupdate: function() {
            var that = this;
            appupgrade.check_upgrade(true);
        }
    }
});
apiready = function() {
    api.parseTapmode();
    ns = window.Foresight.Util;
    UIActionProgress = api.require('UIActionProgress');
}
